<template>
  <div id="app">
    <router-view />
    <van-tabbar
      class="tab"
      v-model="active"
      active-color="#ee0a24"
      router
      inactive-color="#000"
    >
      <van-tabbar-item to="/home">
        <div class="iconfont icon-biaoqiankuozhan_shouye-116"></div>
        首页
      </van-tabbar-item>
      <van-tabbar-item to="/fa">
        <div class="iconfont icon-discover"></div>
        搜索
      </van-tabbar-item>
      <van-tabbar-item to="/ding">
        <div class="iconfont icon-cangpeitubiao_dingdan"></div>
        订单
      </van-tabbar-item>
      <van-tabbar-item to="/wo">
        <div class="iconfont icon-zhanghao"></div>
        我的
      </van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>
<style  scoped>
.tab {
  border-top: 1px solid lightgray;
}
.iconfont {
  font-size: 23px;
  line-height: 30px;
}
</style>